<!DOCTYPE html>
<%@ include file="/common/taglibs.jsp"%>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title><fmt:message key="webapp.name" /> | <fmt:message key="patentList.title" /></title>
</head>
<body>
    <div align="center">
        <h1><fmt:message key="search.title" /></h1>
    </div>
    <br>
    <div id="linkNewSearch">
        <a href="${ctx}/patentsearch.jsp"><fmt:message key="link.newsearch" /></a>
    </div>
    <br>
    <br>
    <hr>
    <div>
        <table style="width: 100%;">
            <caption style="text-align: left; font-weight: bold;">
                <font size="+1"><fmt:message key="patentList.heading" /></font>
            </caption>
            <thead>
                <tr>
                    <th style="text-align: left;" scope="col" width="15%">
                        <fmt:message key="patentList.patNumber" />
                    </th>
                    <th style="text-align: left;" scope="col" width="85%">
                        <fmt:message key="patentList.patTitle" />
                    </th>
                </tr>
            </thead>
            <tbody>
                <c:forEach items="${result}" var="patent">
                <tr>
                    <td style="text-align: left;">
                        <a href="${ctx}/patents?patNum=${patent.patNumber}">${patent.patNumber}</a>
                    </td>
                    <td style="text-align: left;">${patent.patTitle}</td>
                </tr>
                </c:forEach>
            </tbody>
        </table>
    </div>
    <hr>
</body>
</html>